package com.atguigu.gmall.payment.service;

import com.alipay.api.AlipayApiException;

public interface AlipayService {

//  生成二维码
    String createAliPay(Long orderId) throws AlipayApiException;
    /**
     * 退款
     * @param orderId
     * @return
     */
    Boolean refund(Long orderId) throws AlipayApiException;

    /**
     * 关闭支付宝交易记录
     * @param orderId
     * @return
     */
    Boolean closePay(Long orderId);

    /**
     * 查看支付宝的交易记录
     * @param orderId
     * @return
     */
    Boolean checkPayment(Long orderId);
}
